﻿@model List<sBlog.Net.Domain.Entities.PostEntity>
<div id="section1" class="menu" style="background-color: #f0efef;">
    <div style="float: left; background-color: #f0efef; height: 30px; margin-top: 5px;">
        <img src="@Url.Content("~/Content/Images/MlogThem/mlog-quote-icon.png")" width="22" height="15" alt="blash"/>&nbsp;&nbsp;
    </div>
    <h2>
        tiêu điểm
    </h2>
    <div style="clear: both;">
    </div>
    <ul class="ulBackground">
        @{int i = 1;}
        @foreach (var post in Model)
        {
            <li>
                @{
            var url = Url.RouteUrl("IndividualPost", new { year = post.PostYear, month = post.PostMonth, url = post.PostUrl, status = string.Empty });
            var shortTitle = post.PostTitle.Length > 60 ? string.Format("{0}...", post.PostTitle.Substring(0, 60)) : post.PostTitle;
                }
                <div class="postMostView" style="height: 60px;">
                    <div style="padding-left: 10px; float: left;">
                        <div class="circleFeatureNumber">
                            <span>@i</span>
                        </div>
                    </div>
                    <div class="textRight" style="height: 60px; padding-top: 10px; vertical-align: middle;">
                        <a href="@url" title="@post.PostTitle">@shortTitle</a>
                    </div>
                </div>
            </li>
            i++;
        }
    </ul>
</div>
